{include file='header.tpl'}

{* $Id: home.tpl 288 2010-01-11 20:17:09Z steve $ *}







{* BEGIN LEFT COLUMN *}




















{* BEGIN MIDDLE COLUMN *}
<div style='float: left; width: 643px; margin-left:5px; margin-right:10px; '>
<div style="background-image: url(./images/home_left_top.gif); width:643px; height:7px;"></div>
<div style="border-left:1px solid #e8e5e5; border-right:1px solid #e8e5e5; padding: 5px 10px 0px 10px;background-color:#FFF;">
{* SHOW NEW CONTENT TABS AND TEASERS *}
<div style="background-image: url(./images/welcome_bg.png); height:170px; background-repeat:no-repeat; padding:10px 10px 10px 27px;">
<div style="color:#333333; font-size:13px; padding-top:0px; font-family:Arial, Helvetica, sans-serif; margin-bottom:6px; font-weight:bold;">{lang_print id=850009}</div>
<div style=" display:block;
color:#000000;


text-align:justify;">{lang_print id=657} </div>
<div>
<div style="float:left; width:155px; height:103px; margin-left:10px; margin-top:5px; background-image: url(); background-repeat:no-repeat;"></div> <div style="float:right; width:390px; "><div style="color:#000; margin-top:10px;"></div>


<div style="color:#000; margin-top:5px;"></div>

<div style="color:#000; margin-top:5px;"></div>
</div><div style="clear:both"></div>
</div>

</div>
<div class='portal_spacer'></div>






{* SHOW PUBLIC VERSION OF ACTIVITY LIST *}
{if $actions|@count > 0}

<div style="background-image: url(./images/recent_back.png); background-repeat:no-repeat; padding:1px;">

<div class='page_header' style="color:#333333; font-size:13px; font-family:Arial, Helvetica, sans-serif; font-weight:bold;margin-bottom:0px; margin-top:3px; border:none; padding-bottom:10px; padding-right:10px; padding-left:10px; background-image: url(./images/head_bg.gif);"><div style="float:left; color:#333333; font-size:13px; font-family:Arial, Helvetica, sans-serif; font-weight:bold;margin-bottom:0px;">{lang_print id=737}</div><div style=' float: right; text-align: right;'>{if $setting.setting_actions_preference == 1} {/if}</div> <div style="clear:both"></div></div>






<div class='portal_whatsnew' style="border-left:none; border-top:none; border-right:none; border-bottom:none; padding:5px 0px 0px 0px;">

{* RECENT ACTIVITY ADVERTISEMENT BANNERS *}
{if $ads->ad_feed != ""}
<div class='portal_action' style='display: block; visibility: visible; padding-bottom: 10px;'>{$ads->ad_feed}</div>
{/if}

{* SHOW ACTIONS *}
{section name=actions_loop loop=$actions max=15}
<div id='action_{$actions[actions_loop].action_id}' class='portal_action{if $smarty.section.actions_loop.first}_top{/if}'>
<table cellpadding='0' cellspacing='0'>
<tr>

<td valign='top'><img src='./images/icons/{$actions[actions_loop].action_icon}' border='0' class='icon' alt='' /></td>
<td valign='top' width='100%'>
{assign var='action_date' value=$datetime->time_since($actions[actions_loop].action_date)}
<div class='portal_action_date'>{lang_sprintf id=$action_date[0] 1=$action_date[1]}</div>
{assign var='action_media' value=''}
{if $actions[actions_loop].action_media !== FALSE}{capture assign='action_media'}{section name=action_media_loop loop=$actions[actions_loop].action_media}<a href='{$actions[actions_loop].action_media[action_media_loop].actionmedia_link}'><img src='{$actions[actions_loop].action_media[action_media_loop].actionmedia_path}' border='0' width='{$actions[actions_loop].action_media[action_media_loop].actionmedia_width}' class='recentaction_media' alt='' /></a>{/section}{/capture}{/if}
{lang_sprintf assign=action_text id=$actions[actions_loop].action_text args=$actions[actions_loop].action_vars}
{$action_text|replace:"[media]":$action_media|choptext:50:"<br>"}
</td>
</tr>
</table>
</div>
{/section}
</div>
<div class='portal_spacer'></div>
{/if}
</div>
<div style="height:1px; background-color:#e8e5e5; margin-left:-10px; margin-right:-10px; margin-bottom:11px;"></div>

<div style='padding: 10px; border:1px solid #c9dbee; background-color:#eff6fd;'>
<div style="color:#333333; font-size:13px; padding-top:0px; font-family:Arial, Helvetica, sans-serif; margin-bottom:6px; font-weight:bold;">{lang_print id=664}</div>
{section name=news_loop loop=$news max=5}
<div style=' background-color:{cycle values="#e4f0fb,#f6fafe"}; padding-top:6px;' class="seRecentNews" id="seRecentNews{$news[news_loop].announcement_id}">
<div class='rencesNewsTitle' style="cursorointer; height:17px;">
<span class="rencesNewsTitleFlag" style="float:right;cursor: pointer;"> <div class="haber_kucul"></div> </span>
<span style="float:left; padding-left:5px; font-size:18px; font-family:Arial, Helvetica, sans-serif; margin-bottom:5px; color:#2f477a;"><img src='./images/icons/news16.gif' border='0' class='icon' alt='' /> {$news[news_loop].announcement_date} &nbsp;</span>

<b>{$news[news_loop].announcement_subject}</b>
</div>
<div style='padding: 6px; border:1px solid #c9dbee; background-color:#fdfdfd; margin-top:6px;' class='newsContent rencesNewsContent{if $news[news_loop].announcement_id > $smarty.cookies.newsLastId}1{else}0{/if}'>
{$news[news_loop].announcement_body}
</div>
</div>
{/section}

</div>

<div class='portal_spacer' style="height:5px;"></div>



{literal}
<script>

var newsExpanded = new Hash.Cookie('seNews');

window.addEvent('domready', function()
{
$$(".seRecentNews").each(function(element)
{
var labelElement = element.getElement('span.rencesNewsTitleFlag');
var newsElement = element.getElement('div.newsContent');

if( !newsExpanded.has(element.id) )
newsExpanded.set(element.id, ( element.getElement('.rencesNewsContent0') ? true : false ));

if( !newsExpanded.get(element.id) )
{
labelElement.innerHTML = ' <div class="haber_buyu"></div> ';
newsElement.slide('hide');
}

element.addEvent('mouseover', function() { newsElement.setStyle('cursor', 'pointer'); });
element.addEvent('click', function()
{
if( newsExpanded.get(element.id) )
{
newsExpanded.set(element.id, false);
labelElement.innerHTML = ' <div class="haber_buyu"></div> ';
newsElement.slide('show').slide('out');
}
else
{
newsExpanded.set(element.id, true);
labelElement.innerHTML = ' <div class="haber_kucul"></div>';
newsElement.slide('hide').slide('in');
}
});
});
});
</script>
{/literal}
</div>





<div style="background-image: url(./images/home_left_bottom.gif); width:643px; height:7px;"></div>
</div>









{* BEGIN RIGHT COLUMN CONTENT *}
<div style='float: left; width: 239px; '>
<div style="background-image: url(./images/home_right_top.gif); width:239px; height:6px;"></div>

<div style="background-color:#FFF; border-right:1px solid #e8e5e5; border-left:1px solid #e8e5e5;">


{* SHOW LAST SIGNUPS *}
<div class='header'><div style="float:left; color: #657690;">{lang_print id=666}</div><div style="float:right; font-size:10px;"><a href="search_advanced.php">See All</a></div><div style="clear:both"></div></div>
<div class='portal_content' style="padding:0px;">


<div class="right_links_yellow" style="margin:0; padding:0px;"><div style="height:1px; background-color:#cad4e4;"></div>
<ul>

{section name=signups_loop loop=$signups max=5}
<li style=" vertical-align:top; "> <a href='{$url->url_create("profile",$signups[signups_loop]->user_info.user_username)}'> <img src='{$signups[signups_loop]->user_photo("./images/nophoto.gif", TRUE)}' class='' width='40' height='40' border='0' alt='' /><span style="padding-left:10px; vertical-align:middle; padding-bottom:20px;">{$signups[signups_loop]->user_displayname|regex_replace:"/'/":"'"|truncate:15:"...":true}</span></a></li>
{/section}
</ul></div>




</div>
<div class='portal_spacer'></div>


{* SHOW LAST LOGINS *}
<div class='header'><div style="float:left; color: #657690;">{lang_print id=671}</div><div style="float:right; font-size:10px;"></div><div style="clear:both"></div></div>
<div class='portal_content' style="padding:0px;">


<div class="right_links_yellow" style="margin:0; padding:0px;"><div style="height:1px; background-color:#cad4e4;"></div>
<ul>

{section name=login_loop loop=$logins max=5}
<li style=" vertical-align:top; "> <a href='{$url->url_create("profile",$logins[login_loop]->user_info.user_username)}'> <img src='{$logins[login_loop]->user_photo("./images/nophoto.gif", TRUE)}' class=' ' width='40' height='40' border='0' alt='' /><span style="padding-left:10px; vertical-align:middle; padding-bottom:20px;">{$logins[login_loop]->user_displayname|regex_replace:"/'/":"'"|truncate:15:"...":true}</span></a></li>
{/section}
</ul></div>
</div>
<div class='portal_spacer'></div>


{* SHOW popular *}
<div class='header'><div style="float:left; color: #657690;">{lang_print id=668}</div><div style="float:right; font-size:10px;"><a href="invite.php">Get Popular</a></div><div style="clear:both"></div></div>
<div class='portal_content' style="padding:0px;">


<div class="right_links_yellow" style="margin:0; padding:0px;"><div style="height:1px; background-color:#cad4e4;"></div>
<ul>

{section name=friends_loop loop=$friends max=5}
<li style=" vertical-align:top; "> <a href='{$url->url_create("profile",$friends[friends_loop].friend->user_info.user_username)}'> <img src='{$friends[friends_loop].friend->user_photo("./images/nophoto.gif", TRUE)}' class=' ' width='40' height='40' border='0' alt='' /><span style="padding-left:10px; vertical-align:middle; padding-bottom:20px;">{$friends[friends_loop].friend->user_displayname|regex_replace:"/'/":"'"|truncate:15:"...":true}<span style="padding-left:5px; font-size:10px; font-weight:normal;">({lang_sprintf id=669 1=$friends[friends_loop].total_friends})</span></span></a></li>
{/section}
</ul></div>
</div>
<div class='portal_spacer'></div>



{* SHOW ONLINE USERS IF MORE THAN ZERO *}
{math assign='total_online_users' equation="x+y" x=$online_users[0]|@count y=$online_users[1]}
{if $total_online_users > 0}
<div class='header'><div style="float:left; color: #657690;">{lang_print id=665} ({$total_online_users})</div><div style="float:right; font-size:10px;"><img src="./images/online_home.png" /></div><div style="clear:both"></div></div>

<div class='portal_content'>
{if $online_users[0]|@count == 0}
{lang_sprintf id=977 1=$online_users[1]}
{else}
{capture assign='online_users_registered'}{section name=online_loop loop=$online_users[0]}{if $smarty.section.online_loop.rownum != 1}, {/if}<a href='{$url->url_create("profile", $online_users[0][online_loop]->user_info.user_username)}'>{$online_users[0][online_loop]->user_displayname}</a>{/section}{/capture}
{lang_sprintf id=976 1=$online_users_registered 2=$online_users[1]}
{/if}
</div>
<div class='portal_spacer'></div>

{/if}
{* SHOW NETWORK STATISTICS *}
{if !empty($site_statistics)}
<div class='header'>{lang_print id=511}</div>
<div class='portal_content'>
{foreach from=$site_statistics key=stat_name item=stat_array}
<img src="./images/stats.gif" /> {lang_sprintf id=$stat_array.title 1=$stat_array.stat}<br />
{/foreach}
</div>

{/if}


</div>
<div style="background-image: url(./images/home_right_bottom.gif); width:239px; height:6px;"></div>
</div>









<div style='clear: both;'></div>

{include file='footer.tpl'} 